﻿@{
    ViewData["Title"] = "Home Page";
}
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="~/resources/StyleSheet.css" rel="stylesheet" />
    <script src="~/resources/jquery-1.11.1.min.js"></script>
</head>
<body>
    <form id="form1">
        <div style="height:50px; background:#4e94fc; color:#fff; border-bottom:1px solid #2e74dd;">
            <div style="font-size:18px; font-weight:bold; padding-top:10px; padding-left:10px;">RoadFlowCore集成测试</div>
        </div>
        <div>
            <table cellpadding="0" cellspacing="0" border="0" width="100%" id="maintable" style="">
                <tr>
                    <td style="width:180px; vertical-align:top; padding:6px 0 0 0;">
                        <div>
                            <ul class="menuul">
                                <li><a class="menu" href="javascript:openurl('/RoadFlowCore/FlowTask/Wait');">待办事项</a></li>
                                <li><a class="menu" href="javascript:openurl('/RoadFlowCore/FlowTask/Completed');">已办事项</a></li>
                                <li><a class="menu" href="javascript:openurl('/RoadFlowCore/FlowDesigner/Index');">流程设计器</a></li>
                                <li><a class="menu" href="javascript:openurl('/RoadFlowCore/FormDesigner/Index');">表单设计器</a></li>
                                <li><a class="menu" href="javascript:openurl('/RoadFlowCore/FlowTask/Instance');">流程实例</a></li>
                                <li><a class="menu" href="javascript:openurl('/RoadFlowCore/FlowButton/Index');">流程按钮</a></li>
                                <li><a class="menu" href="javascript:openurl('/RoadFlowCore/FlowComment/Index');">流程意见</a></li>
                                <li><a class="menu" href="javascript:openurl('/RoadFlowCore/FlowEntrust/Index');">流程委托</a></li>
                                <li><a class="menu" href="javascript:openurl('/RoadFlowCore/DbConnection/Index');">数据连接管理</a></li>
                                <li><a class="menu" href="javascript:openurl('/RoadFlowCore/Dictionary/Index');">数据字典管理</a></li>
                                <li><a class="menu" href="javascript:openurl('/RoadFlowCore/Applibrary/Index');">应用程序库</a></li>
                                <li style="border-bottom:1px solid #e8e8e8; height:1px; padding:5px 0;"></li>
                                <li><a class="menu" href="javascript:openurl('/RoadFlowCore/FlowRun/Starts');">发起流程</a></li>
                                <li style="border-bottom:1px solid #e8e8e8; height:1px; padding:5px 0;"></li>
                                <li><a class="menu" href="javascript:if(confirm('真的要退出吗?')){window.location='/Home/Quit'}">退出系统</a></li>
                            </ul>
                        </div>
                    </td>
                    <td style="width:1px; background:#cddef4;"></td>
                    <td style="padding:0; vertical-align:top;">
                        <iframe id="roadflow_mainiframe" name="roadflow_mainiframe" src="" frameborder="0" scrolling="auto" style="width:100%; height:500px; border:none 0; padding:0; margin:0;"></iframe>
                    </td>
                </tr>
            </table>
        </div>
    </form>
    <script type="text/javascript">
    $(window).load(function () {
        $("#maintable").height($(window).height() - 52);
        $("#roadflow_mainiframe").height($(window).height() - 55);
    });

    var roadflowCurrentWindow = null;//当前弹出窗口的父窗口
    //打开连接地址（平台很多地方用到了top.openApp(),所以这里要有这个函数）
    function openApp(url) {
        if(!url || $.trim(url).length==0){
            return;
        }
        roadflowCurrentWindow = document.getElementById("roadflow_mainiframe").contentWindow;
        roadflowCurrentWindow.location = url;
    }

    function openurl(url) {
        roadflowCurrentWindow = document.getElementById("roadflow_mainiframe").contentWindow;
        roadflowCurrentWindow.location = url;
    }

    //系统中流程处理完成后的操作
    function flowCompleted() {
        //转到待办事项
        document.getElementById("roadflow_mainiframe").contentWindow.location = "/RoadFlowCore/FlowTask/Wait";
    }
    </script>
</body>
</html>